<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <!--
    App Engine Console - main interface template

    Copyright 2008-2009 Proven Corporation Co., Ltd., Thailand

    This file is part of App Engine Console.

    App Engine Console is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, version 3 of the License.

    App Engine Console is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with App Engine Console; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    -->
    <head>
        <link rel="icon" href="/favicon.ico">
        <link type="text/css" rel="stylesheet" href="/console/static/style/yui-2.6.0/reset-fonts-grids.css">
        <link type="text/css" rel="stylesheet" href="/console/static/style/google.css">
        <link type="text/css" rel="stylesheet" href="/console/static/style/console.css">

        <!--[if IE]>
            <link type="text/css" rel="stylesheet" href="/console/static/style/ie.css">
        <![endif]-->
        <!--[if lte IE 6]>
            <link type="text/css" rel="stylesheet" href="/console/static/style/ie6.css">
        <![endif]-->
        <!--[if IE 7]>
            <link type="text/css" rel="stylesheet" href="/console/static/style/ie7.css">
        <![endif]-->

        <!-- Javascript -->
        <script type="text/javascript" src="/console/static/javascript/jquery-1.3.1.min.js"></script>
        <script type="text/javascript" src="/console/static/javascript/console.js"></script>

        <title>
            {% if is_dev %}
                [DEV] -
            {% endif %}
            {{app}}
        </title>
    </head>

    <body class="yui-skin-sam">
        <div id="doc3" class="yui-t5"> <!-- 100% page width, 240px right sidebar -->
            <!-- Header -->
            <div id="hd">
                <div style="float:left; color:green; font-weight:bold">
                    {{app|capfirst}} {{version}}
                    {% if is_dev %}
                        (DEVELOPMENT)
                    {% endif %}
                </div>
                <div class="links">
                    {% if user %}
                        <b>{{email}} ({{user}})</b>
                        |
                    {% endif %}
            
                    <a class="novisit" href="/">Front Page</a>
                    |
                    {% if is_dev %}
                        <a class="novisit" href="http://{{version}}.{{app}}.appspot.com/">Production</a>
                        |
                    {% endif %}
            
                    <a class="novisit" href="http://code.google.com/appengine/docs/">API</a>
                    |
                    <a class="novisit" href="http://www.proven-corporation.com/software/app-engine-console/">Project Page</a>
                    |
                    {% if user %}
                        <a class="novisit" href="{{log_out|escape}}">Log out</a>
                    {% else %}
                        <a class="novisit" href="{{log_in|escape}}">Log in</a>
                    {% endif %}
                </div>
                <div class="mainmenu">
                    {% block mainmenu %}
                        {% for menupage in pages %}
                            {% ifequal controller menupage.name %}
                                <a href="{{menupage.href}}" class="active">{{menupage.name}}</a>
                            {% else %}
                                <a href="{{menupage.href}}">{{menupage.name}}</a>
                            {% endifequal %}
                        {% endfor %}
                    {% endblock %}
                </div>
                <div class="mainmenu2">
                    {% block mainmenu2 %}
                        {% if not subpages %}
                            &nbsp;
                        {% else %}
                            {% for sub in subpages %}
                                {% ifequal sub subpage %}
                                    <a href="/console/{{controller|lower}}/{{sub}}" class="active">{{sub|capfirst}}</a>
                                {% else %}
                                    <a href="/console/{{controller|lower}}/{{sub}}">{{sub|capfirst}}</a>
                                {% endifequal %}
        
                                {% if not forloop.last %}
                                    |
                                {% endif %}
                            {% endfor %}
                        {% endif %}
                    {% endblock %}
        
                    {% block settings %}
                        {% for setting in settings %}
                            {% if forloop.first %}
                                Settings:
                            {% endif %}
        
                            {% ifequal setting.type 'hidden' %}
                                <input type="hidden" id="setting_{{setting.id}}" value="{{setting.value}}">
                            {% else %}
                                <select id="setting_{{setting.id}}">
                                    {% for option in setting.options %}
                                        <option value="{{option}}">{{option}}</option>
                                    {% endfor %}
                                </select>
                            {% endifequal %}
                        {% endfor %}
                    {% endblock %}
                </div>
            </div>

            <!-- Body -->
            <div id="bd">
                <div id="yui-main">
                    <div class="yui-b">
                      {% block body %}
                          PAGE BODY GOES HERE
                      {% endblock %}
                    </div>
                </div>
                <div class="yui-b">
                    <div id="talkinator"></div>
                </div>
            </div>

            <!-- Footer -->
            <div id="ft">
                {% block poweredby %}
                {% endblock %}
          
                <div class="extra" style="font-size: 9pt; float: right;">
                    {% include "console_revision.html" %}
                </div>

                {% block analytics %}
                    {% if my_website and not admin %}
                        {# This is for tracking with Google Analytics when viewed at the con.appspot.com page #}
                        <script type="text/javascript">
                            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
                            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
                            </script>
                            <script type="text/javascript">
                            var pageTracker = _gat._getTracker("UA-1486381-4");
                            pageTracker._trackPageview();
                        </script>
                    {% endif %}
                {% endblock %}
            </div>
        </div>
    </body>
</html>
